//
// Created by Castle on 2025/10/23.
//

using namespace std;
#include <iostream>


int main() {

    int packages [4][3];

    cout << "Size of packages: " << sizeof(packages) << endl;

    cout << "element count in packages: " << size(packages) << endl;

    cout << endl;
    cout << "Print out un-initialized array using magic numbers for dimensions : " << endl;
    for (size_t i{0};i < 4;i++) {
        for (size_t j{0};j < 3;j++) {
            cout << "Item (" << i << "," << j << "): " << packages[i][j] << endl;
        }
    }



    // multi array of characters
    const size_t name_length {15};
    char members [][name_length] {
      {'J','o','h','n'},
        {'a','b','c','e','F','d','s','c','d','e','o','p'},
        {'A','s','a','d'},
        {'B','O','D','N','m','x','z','y'},
    };

    cout << "Unsafe printing of members : " << endl;
    for (size_t i{0};i < size(members);++i) {
        for (size_t j{0};j < size(members[i]);j++) {
            cout << members[i][j] << " ";
        }
        cout << endl;
    }

    return 0;
}